package com.ssl.tensquare.recruit.pojo;

import com.ssl.tensquare.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 描述：招聘信息
 *
 * @author ssl
 * @create 2019/06/26 17:38
 */
@Getter
@Setter
@Entity
@Table(name = "`recruit_recruit`")
@SQLDelete(sql = "update recruit_recruit set del_flag = 1 where id = ?")
@Where(clause = "del_flag = 0")
public class Recruit extends BaseEntity {
    private static final long serialVersionUID = -3780899870658970764L;
    // 企业ID
    private String enterprise;
    // 招聘职位
    private String jobName;
    // 薪资范围
    private String salary;
    // 经验要求
    @Column(name = "`condition`")
    private String condition;
    // 学历要求
    private String education;
    // 任职方式
    private String type;
    // 办公地址
    private String address;
    // 状态:关闭,开启,推荐
    private String state;
    // 原网址
    private String url;
    // 标签
    private String label;
    // 职位描述
    private String content1;
    // 职位要求
    private String content2;

}
